﻿namespace BestEasyCMS.Framework.Configuration
{
    /// <summary>
    /// 应该程序设置工厂
    /// </summary>
    public class ApplicationSettingsFactory
    {
        private static IApplicationSettings _applicationSettings;

        /// <summary>
        /// 初始化应该程序设置工厂
        /// </summary>
        /// <param name="applicationSettings"></param>
        public static void InitializeApplicationSettingsFactory(IApplicationSettings applicationSettings)
        {
            _applicationSettings = applicationSettings;
        }
        /// <summary>
        /// 获取应用程序设置对象
        /// </summary>
        /// <returns></returns>
        public static IApplicationSettings GetApplicationSettings()
        {
            return _applicationSettings;
        }


    }
}
